commonlibsse_ng\re\b/
bhkUnaryAction.rs

1//! # bhkUnaryAction
2//!
3//! This module defines the `bhkUnaryAction` struct, which inherits from `bhkAction`
4//! and represents a serializable object in the physics world. It includes virtual function pointers
5//! for C++ compatibility and maintains the original memory layout.
6
7use crate::re::bhkAction::{bhkAction, bhkActionVtbl};
8use crate::re::offsets_ni_rtti::NiRTTI_bhkUnaryAction;
9use crate::re::offsets_rtti::RTTI_bhkUnaryAction;
10use crate::re::offsets_vtable::VTABLE_bhkUnaryAction;
11use crate::rel::id::VariantID;
12
13#[repr(C)]
14#[derive(Debug)]
15pub struct bhkUnaryAction {
16    /// Base class.
17    pub __base: bhkAction,
18}
19const _: () = assert!(core::mem::size_of::<bhkUnaryAction>() == 0x20);
20
21impl bhkUnaryAction {
22    /// Address & Offset of the runtime type information (RTTI) identifier.
23    pub const RTTI: VariantID = RTTI_bhkUnaryAction;
24    /// Address & Offset of the runtime type information (Ni RTTI) identifier.
25    pub const NI_RTTI: VariantID = NiRTTI_bhkUnaryAction;
26
27    /// Address & Offset of the virtual function table.
28    pub const VTABLE: [VariantID; 1] = VTABLE_bhkUnaryAction;
29}
30
31/// The virtual function table for `bhkUnaryAction`.
32///
33/// This struct defines function pointers to simulate the C++ virtual functions.
34#[repr(C)]
35pub struct bhkUnaryActionVtbl {
36    pub __base: bhkActionVtbl,
37}